method of separation of variables in physics